package javaapplication11;

class Ball extends Throwable {

}

/**
 *
 * @author gordon
 */
public class P {

    P target;
    P(P target) {
        this.target = target;
    }

    void Aim(Ball ball) {
        try {
            throw ball;
        } catch (Ball b) {
            target.Aim(b);
        }
    }

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
         P parent = new P(null);
         P child = new P(parent);
         parent.target = child;
         parent.Aim(new Ball());
    }

}
